package com.nantian.nfcm.bms.loan.service;

import com.nantian.nfcm.bms.loan.dao.LoanJournalDao;
import com.nantian.nfcm.bms.loan.entity.LoanJournal;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoanJournalService {
    private LoanJournalDao loanJournalDao;

    public LoanJournalService(LoanJournalDao loanJournalDao) {
        this.loanJournalDao = loanJournalDao;
    }

    public List<LoanJournal> findByLoanId(String loanId){
        return loanJournalDao.findByLoanId(loanId);
    }
}
